﻿namespace WeWork.Model
{
    /// <summary>
    /// 视频
    /// </summary>
    public class ChatVideo : MsgChatRoomBase
    {
        /*
        {
            "msgid":"17955920891003447432_1603875627",
            "action":"send",
            "from":"kenshin",
            "tolist":["wmGAgeDQAAHuRJbt4ZQI_1cqoQcf41WQ"],
            "roomid":"",
            "msgtime":1603875626823,
            "msgtype":"video",
            "video":{
                "md5sum":"d06fc80c01d6fbffcca3b229ba41eac6",
                "filesize":15169724,
                "play_length":108,
                "sdkfileid":"MzAzMjYxMzAzNTYzMzgzMjMyMzQwMjAxMDAwMjA0MDBlNzc4YzAwNDEwZDA2ZmM4MGMwMWQ2ZmJmZmNjYTNiMjI5YmE0MWVhYzYwMjAxMDQwMjAxMDAwNDAwEjhORGRmTVRZNE9EZzFNREEyTlRjM056QXpORjgxTWpZeE9USTBOek5mTVRZd016ZzNOVFl5Tnc9PRogNTIzNGQ1NTQ5N2RhNDM1ZDhlZTU5ODk4NDQ4NzRhNDk="
            }
        }
        */
        /// <summary>
        /// 消息内容
        /// </summary>
        public VideoInfo video { set; get; }
    }

    public class VideoInfo
    {
        /// <summary>
        /// 资源的md5值，供进行校验。String类型
        /// </summary>
        public string md5sum { set; get; }
        /// <summary>
        /// 资源的文件大小。Uint32类型
        /// </summary>
        public int filesize { set; get; }
        /// <summary>
        /// 播放长度。Uint32类型
        /// </summary>
        public int play_length { set; get; }
        /// <summary>
        /// 媒体资源的id信息。String类型
        /// </summary>
        public string sdkfileid { set; get; }
    }
}
